$(function () {

    listArticle(1);

    // 资讯加载
    function listArticle(pageNo) {
        var typeId =  $("#articleTypeList a.active").data("articletype");
        var params = {"typeId":typeId};
        params = JSON.stringify(params);
        loadMobilePathData({
            url: baseloaction + '/mobile/article/ajaxOpArticleList',
            contextId: 'article-list',
            pageNo: pageNo,
            pageCall: listArticle,
            params: params,
            callback: function (pageNo) {
            }
        });
    }
    $('body').on('click','.articleType' ,function () {
        $("#articleTypeList a.active").removeClass("active");
        $(this).addClass("active");
        listArticle(1);
    });
});